package com.ahut.gsmcommon.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.springframework.context.annotation.Configuration;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author gan.sumin@mail.com
 * @data 2018/6/1916:20
 * @description
 */
@Entity
@Data
@Table(name = "user")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})
public class User implements Serializable {
    @Id
    @Column(name = "user_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @Column(name = "user_email")
    private String userName;
    @Column(name = "password")
    private String passWord;
    @Column(name = "create_time")
    private Date createTime;
}
